package com.graduation.smartparkingplatform.Service;

import com.github.pagehelper.PageInfo;
import com.graduation.smartparkingplatform.Pojo.Private;
import com.graduation.smartparkingplatform.Pojo.Space;

import java.util.List;

public interface PrivateService {
  // 获取private列表（分页）
  public PageInfo<Private> getPrivateList(Integer page, Integer count);

  // 获取私有人下的车位列表
  public List<Space> getPrivateLists(Integer privateId);

  // 模糊搜索private（分页）
  public PageInfo<Private> searchPrivate(Integer page, Integer count, String privateName);

  // 添加私有车位
  public Boolean addPrivate(Private privatee);

  // 修改私有车位信息
  public Boolean changeInfo(Private privatee);

  // 修改私有车位状态
  public Boolean changePrivateStatus(Integer privateId, Boolean status);

  // 删除私有车位
  public Boolean deletePrivate(Integer privateId);

  // 绑定停车位
  public Boolean bindingSpace(Integer privateId, Integer spaceId);
}
